package com.learn.jackson.annotation.jsonPropertyOrder;

import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.FieldDefaults;

/**
 * @author XuYang
 * @since 2025/6/9 9:43
 */
@Data
@NoArgsConstructor
@FieldDefaults(level = AccessLevel.PRIVATE)
@AllArgsConstructor(staticName = "of")
@JsonPropertyOrder(value = {"name"})
public class JsonPropertyOrderEntity {
    Long id;
    String name;
    Integer age;
}
